// 统一导出所有模板
export { indexHtmlContent } from "./indexHtml.template.js";
export { mainTsContent } from "./mainTs.template.js";
export { appVueContent } from "./appVue.template.js";
export { elementPlusDemoContent } from "./elementPlusDemo.template.js";
export { packageJsonContent } from "./packageJson.template.js";
export { fallbackCode } from "./fallbackCode.template.js";

// 导出用于生成不同类型文件默认内容的函数
export const generateDefaultContent = (fileName) => {
  if (fileName.endsWith(".vue")) {
    return `<template>\n  <div>\n    \n  </div>\n</template>\n\n<script setup>\n\n</script>\n\n<style scoped>\n\n</style>`;
  } else if (fileName.endsWith(".js") || fileName.endsWith(".ts")) {
    return `// ${fileName}\n\n`;
  } else if (fileName.endsWith(".json")) {
    return `{\n  \n}`;
  } else if (fileName.endsWith(".html")) {
    return `<!DOCTYPE html>\n<html>\n<head>\n  <title></title>\n</head>\n<body>\n  \n</body>\n</html>`;
  } else if (fileName.endsWith(".css")) {
    return `/* ${fileName} */\n\n`;
  }
  return "";
};
